package communication;

import java.io.Serializable;

public class ActionRequest implements Serializable {

	/**
	 * 
	 */
	
	private static final long serialVersionUID = 4056797008747619761L;
	public static final int REQ_WAITING = 101;
	public static final int REQ_INVITE = 102;
	public static final int REQ_ACCEPT = 103;
	public static final int REQ_REJECT = 104;
	public static final int REQ_UNINVITE = 105;
	public static final int REQ_CANCEL_WAITING = 106;
	public static final int REQ_LOGOUT = 107;
	public static final int REQ_MESSAGE = 108;
	public static final int REQ_PLAY_WITH = 109;

	private String username="";
	private String message="";
	private int type;
	
	
	public ActionRequest(String username, int type) {
		this.username = username;
		this.type = type;
	}
	
	public ActionRequest(int type) {
		this.type = type;
	}


	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	public int getType() {
		return type;
	}


	public void setType(int type) {
		this.type = type;
	}
	
	public String getMessage() {
		return message;
	}
	
	public void setMessage(String message) {
		this.message = message;
	}
	
	
	
	
}
